package com.itheima.service;

import com.itheima.pojo.Brand;
import com.itheima.pojo.PageBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BrandService {

    /**
     * @description:查询所有
     * @author: yanhongwei
     * @date: 2023/3/16 17:08
     * @param: []
     * @return: java.util.List<com.itheima.pojo.Brand>
     **/
    List<Brand> selectAll();

    void add(Brand brand);

    void del(int id);

    void delAll(int[] ids);

    public PageBean<Brand> selectAllPage(int begin, int size);
    /**
     * @description:分页条件查询
     * @author: yanhongwei
     * @date: 2023/3/17 10:45
     * @param: [begin, size, brand]
     * @return: com.itheima.pojo.PageBean<com.itheima.pojo.Brand>
     **/
    public PageBean<Brand> selectByPageAndCondition(int begin, int size,Brand brand);
}
